<?php
/* 
 *报警库存
 */
class MinstockAction extends CommonAction {
    public function _filter(&$map) {
        $map['number'] = array('exp','< minstock');
        
        $key = trim($_REQUEST['keywords']);
        if(!empty($key)) {
            $where['Product.name'] = array('like',"%".$key."%");//产品名称
            $where['tm'] = array('like',"%".$key."%");//条码
            $where['_logic'] = "or";
            $map['_complex'] = $where;
        }
        
    }

    public function  index() {
      parent::index('StockView');
    }
    
}
?>
